import request from '@/utils/request.js'

//   获取物业费管理列表
export function getPropertyList(params) {
  return request({
    url: 'park/propertyfee',
    method: 'get',
    params
  })
}

//  新增账单
export function addProperty(data) {
  return request({
    url: '/park/propertyfee',
    method: 'post',
    data
  })
}

//删除账单信息
export function deleteProperty(id) {
  return request({
    url: `/park/propertyfee/${id}`,
    method: 'delete'
  })
}

//   获取账单详情
export function getPropertyDetail(id) {
    return request({
      url: `/park/propertyfee/${id}`,
      method: 'get'
    })
  }

//   查询所有楼宇
export function getBuildings() {
  return request({
    url: '/park/all/building',
    method: 'get'
  })
}

//  查询所有企业
export function getCompanies() {
  return request({
    url: '/park/all/enterprise',
    method: 'get'
  })
}

//  获取金额
export function getAmount(data) {
  return request({
    url: '/park/propertyfee/pre/payment',
    method: 'post',
    data
  })
}